package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AppVersionMapper;
import com.ruoyi.system.domain.AppVersion;
import com.ruoyi.system.service.IAppVersionService;

/**
 * app版本升级Service业务层处理
 * 
 * @author chengxin.ju
 * @date 2024-07-03
 */
@Service
public class AppVersionServiceImpl  implements IAppVersionService
{
    @Autowired
    private AppVersionMapper appVersionMapper;

    /**
     * 查询app版本升级
     * 
     * @param id app版本升级主键
     * @return app版本升级
     */
    @Override
    public AppVersion selectAppVersionById(Long id)
    {
        return appVersionMapper.selectAppVersionById(id);
    }

    /**
     * 查询app版本升级列表
     * 
     * @param appVersion app版本升级
     * @return app版本升级
     */
    @Override
    public List<AppVersion> selectAppVersionList(AppVersion appVersion)
    {
        return appVersionMapper.selectAppVersionList(appVersion);
    }

    /**
     * 新增app版本升级
     * 
     * @param appVersion app版本升级
     * @return 结果
     */
    @Override
    public int insertAppVersion(AppVersion appVersion)
    {
        return appVersionMapper.insertAppVersion(appVersion);
    }

    /**
     * 修改app版本升级
     * 
     * @param appVersion app版本升级
     * @return 结果
     */
    @Override
    public int updateAppVersion(AppVersion appVersion)
    {
        return appVersionMapper.updateAppVersion(appVersion);
    }

    /**
     * 批量删除app版本升级
     * 
     * @param ids 需要删除的app版本升级主键
     * @return 结果
     */
    @Override
    public int deleteAppVersionByIds(Long[] ids)
    {
        return appVersionMapper.deleteAppVersionByIds(ids);
    }

    /**
     * 删除app版本升级信息
     * 
     * @param id app版本升级主键
     * @return 结果
     */
    @Override
    public int deleteAppVersionById(Long id)
    {
        return appVersionMapper.deleteAppVersionById(id);
    }
}
